﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="ViewExternalReporting.aspx.cs" Inherits="Qianwei.Web.Admins.ViewExternalReporting" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table id="mainpage" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="30">
            </td>
        </tr>
        <tr>
            <td>
                <table id="datatable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td height="20">
                                        <input type="button" class="right-button08" value="新建信息" onclick="location.href='AddExternalReporting.aspx'" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 10px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="font42">
                                        <asp:Repeater ID="r_news" runat="server">
                                            <HeaderTemplate>
                                                <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646"
                                                    class="newfont03">
                                                    <tr>
                                                        <td height="20" colspan="6" style="text-align: center;" bgcolor="#EEEEEE" class="tablestyle_title">
                                                            外部报道
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            序号
                                                        </td>
                                                        <td bgcolor="#EEEEEE">
                                                            标题
                                                        </td>
                                                        <td height="20" bgcolor="#EEEEEE">
                                                            作者
                                                        </td>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            内容
                                                        </td>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            发布时间
                                                        </td>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            操作
                                                        </td>
                                                    </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr align="left">
                                                    <td bgcolor="#FFFFFF">
                                                        <%#DataBinder.Eval(Container.DataItem, "New_Center_Id")%>
                                                    </td>
                                                    <td height="20" bgcolor="#FFFFFF">
                                                        <%#DataBinder.Eval(Container.DataItem, "New_Title")%>
                                                    </td>
                                                    <td bgcolor="#FFFFFF">
                                                        <%#DataBinder.Eval(Container.DataItem, "New_Author")%>
                                                    </td>
                                                    <td bgcolor="#FFFFFF">
                                                        <%#DataBinder.Eval(Container.DataItem, "New_Content")%>
                                                    </td>
                                                    <td bgcolor="#FFFFFF">
                                                        <%#DataBinder.Eval(Container.DataItem, "Create_Time")%>
                                                    </td>
                                                    <td bgcolor="#FFFFFF">
                                                        <a onclick='Updatenew(<%#DataBinder.Eval(Container.DataItem, "New_Center_Id")%>)'>编辑</a>|
                                                        <asp:LinkButton ID="lbtnDel" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "New_Center_Id")%>'
                                                            OnClick="btnDel_Click">删除</asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align: left;">
                                        <webdiyer:AspNetPager ID="AspNetPager" CssClass="pagger" runat="server" OnPageChanging="AspNetPager_PageChanging"
                                            AlwaysShow="true" PageSize="5" LastPageText="末页" FirstPageText="首页" PrevPageText="上一页"
                                            NextPageText="下一页">
                                        </webdiyer:AspNetPager>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div id="loadingmsg" style="width: 100px; height: 18px; top: 0px; display: none;">
        <img src="/images/loadon.gif" />
    </div>
    <script type="text/javascript">
        function Updatenew(id) {
            redirecturl("AddExternalReporting.aspx?nid=" + id);
        }
    </script>
</asp:Content>
